package com.gxa.insurance.service;

import com.gxa.insurance.exception.BusinessException;
import com.gxa.insurance.pojo.Policy;

import java.util.List;
import java.util.Map;


/**
 * @date 2022/6/7
 */

public interface PolicyService {

//    查询
    Map<String,Object> selectAll() throws BusinessException;

    Policy selectById(Integer id) throws BusinessException;

//    模糊查询
    List<Policy> selectLikeName(String name) throws BusinessException;

//    添加
    Integer add(Policy policy) throws BusinessException;

//    删除
   void delete(Integer id) throws BusinessException;

//    修改
    void update(Policy policy);
}
